beginning of the year

14th of October

the end of the year

12th of June

4th of March

Client of a bank opened a deposit book on 4th of March and he invested 240 EUR. On 12th June invested on the book 415 EUR and on 14th of October 310 EUR. 
Period of interest is one year and the bank pays interest in the end of the year. How much money had the client on the deposit book at the end of the year? 
We assume that annual interest rate was stable on the level of 2,4 % and the client did´nt withdraw a money from the book during the year.

Method1

Method2

B = (162, 0)
C = (284, 0)
D = (360, 0)
z = (0, 1)
A = (64, 0)
E: A + z
F: B + z
G: C + z
H: D + z
u = Vector(E, F)
v = Vector(F, G)
w = Vector(G, H)
a = Length(u)
b = Length(v)
c = Length(w)
text5: "days " + a
text6: "days " + b
text7: "days " + c
Deposit1 = 0 (slider from 0 to 500, step 1)
Deposit2 = 0 (slider from 0 to 500, step 1)
Deposit3 = 0 (slider from 0 to 500, step 1)
Interest = 0 (slider from 0 to 10, step 0.1)
úrok1: Deposit1 a / 360 Interest / 100 * 0.81
úrok2: (Deposit1 + Deposit2) b / 360 Interest / 100 * 0.81
úrok3: (Deposit1 + Deposit2 + Deposit3) c / 360 Interest / 100 * 0.81
text8: "interest = " + úrok1
text9: "interest = " + úrok2
text11: "interest = " + úrok3
I = (0, 0)
sum: úrok1 + úrok2 + úrok3 + Deposit1 + Deposit2 + Deposit3
text12: "sum = " + sum
J: A - z
K: B - 2 z
L: C - 3 z
M: D - z
N: D - 2 z
O: D - 3 z
e = Vector(J, M)
f = Vector(K, N)
g = Vector(L, O)
h = Length(e)
i = Length(f)
j = Length(g)
text13: "days " + h
text14: "days " + i
text15: "days " + j
úrok4: Deposit1 Interest / 100 h / 360 * 0.81
úrok5: Deposit2 Interest / 100 i / 360 * 0.81
úrok6: Deposit3 Interest / 100 j / 360 * 0.81
text16: "interest = " + úrok4
text17: "interest = " + úrok5
text18: "interest = " + úrok6
sum2: úrok4 + úrok5 + úrok6 + Deposit1 + Deposit2 + Deposit3
text19: "sum = " + sum2
d = false
k = false